package com.project.service.remote;

import com.project.dto.riderToUser.InfoDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * Created by 卢泓佚  414814103@qq.com on 2021/10/11
 *
 * url = "http://d796-2408-8466-3a0-4d6-b893-1d27-41a9-70f7.ngrok.io"
 */
@FeignClient(name = "RiderSys")
public interface RiderRemoteService {

    @PostMapping("rider/userRating/{code}/{userRating}")
    public InfoDto userRating(@PathVariable String code, @PathVariable String userRating);

}
